import type { CreateTestChildDto } from "./types/create-test-child.d.ts";
import type { UpdateTestChildDto } from "./types/update-test-child.d.ts";

export async function create(createTestChildDto: CreateTestChildDto): Promise<string> {
    return axios.post(`/test-child`,createTestChildDto)
}

export async function findAll(): Promise<string> {
    return axios.get(`/test-child`)
}

export async function findOne(id: string): Promise<string> {
    return axios.get(`/test-child/${id}`)
}

export async function update(id: string, updateTestChildDto: UpdateTestChildDto): Promise<string> {
    return axios.patch(`/test-child/${id}`,updateTestChildDto)
}

export async function remove(id: string): Promise<string> {
    return axios.delete(`/test-child/${id}`)
}
